{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "9225b680",
   "metadata": {},
   "source": [
    "### bee2021秋季课程表（更新至第4周）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "11f4f11d",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 使用日期模块\n",
    "import datetime\n",
    "import time\n",
    "\n",
    "# 用户数据\n",
    "user_data = ('bee')\n",
    "password_data = ('123456')\n",
    "\n",
    "count = 5\n",
    "# 会员用户有5次输入机会\n",
    "while True:\n",
    "    count -= 1\n",
    "    # 用户输入账号及密码\n",
    "    username = input('请输入您的账号：')\n",
    "    password = input('请输入您的密码：')\n",
    "    \n",
    "    if user_data == username:\n",
    "        if password_data == password:\n",
    "            # 占位符%s\n",
    "            print('欢迎%s登录系统进行使用!'%(username))\n",
    "\n",
    "            break\n",
    "        else:\n",
    "            if count == 0:\n",
    "                print(\"你已经输错5次啦，没机会啦~~~五分钟后再来哦\")\n",
    "                break\n",
    "            else:\n",
    "                print('你输入的账号或密码错啦！请重新输入吧，你还有%s次机会，再试试！'%(count))\n",
    "          \n",
    "    else:\n",
    "        if count == 0:\n",
    "            print('你已经输错5次啦，没机会啦~~~五分钟后再来哦')\n",
    "            break\n",
    "        else:\n",
    "            print('你输入的账号或密码错啦！请重新输入吧，你还有%s次机会'%(count))\n",
    "     \n",
    "                          \n",
    "# 调用日期\n",
    "Time = time.strftime('%Y-%m-%d-%A-%H:%M')\n",
    "print('现在是：',Time)\n",
    "\n",
    "# 用户输入weekday进行判断\n",
    "today = int(input('weekday:'))\n",
    "if today == 1:\n",
    "    print('周一有1节课：3-5');\n",
    "    floor = 1\n",
    "    while floor == 1:\n",
    "        course = input('请输入你想查看的课程：')\n",
    "        if course == '3-5':\n",
    "            print('Python语言')\n",
    "            print('许志超')\n",
    "        place = input('输入课程查看你的教室')\n",
    "        if place == 'python':\n",
    "            print('2实203')\n",
    "elif today == 2:\n",
    "    print('周二有2节课:8-10,12-13');\n",
    "    floor = 2\n",
    "    while floor == 2:\n",
    "        course =input('请输入你想查看的课程：')\n",
    "        if course == '8-10':\n",
    "            print('网站运营与管理')\n",
    "            print('胡美香')\n",
    "            place = input('输入课程查看你的教室')\n",
    "            if place == '网站运营与管理':\n",
    "                print('3实304')\n",
    "        elif course == '12-13':\n",
    "            print('毛概（实践）')\n",
    "            print('张海伦')\n",
    "        place = input('输入课程查看你的教室')\n",
    "        if place == '毛概（实践）':\n",
    "            print('11教102')\n",
    "\n",
    "elif today == 3:\n",
    "    print('周三有1节课：12-13');\n",
    "    floor = 3\n",
    "    while floor == 3:\n",
    "        course = input('请输入你想查看的课程：')\n",
    "        if course == '12-13':\n",
    "            print('创业基础（实践）')\n",
    "            print('李顺萍')\n",
    "        place = input('输入课程查看你的教室')\n",
    "        if place == '创业基础（实践）':\n",
    "            print('1教402')\n",
    "\n",
    "elif today == 4:\n",
    "    print('周四有2节课：3-5,8-9')\n",
    "    floor = 4\n",
    "    while floor == 4:\n",
    "        course = input('请输入你想查看的课程：')\n",
    "        if course == '3-5':\n",
    "            print('毛概理论');\n",
    "            print('张由菊')\n",
    "            place = input('输入课程查看你的教室')\n",
    "        if place == '毛概理论':\n",
    "            print('9教207')\n",
    "        elif course == 8-9:\n",
    "            print('广告文案写作')\n",
    "        place = input('输入课程查看你的教室')\n",
    "        if place == '广告文案写作':\n",
    "            print('1教303')\n",
    "elif today == 5:\n",
    "    print('周五有1节课：3-5');\n",
    "    floor = 5\n",
    "    while floor == 5:\n",
    "        course = input('请输入你想查看的课程：')\n",
    "        if course =='3-5':\n",
    "            print('illustrator软件应用')\n",
    "        place = input('输入课程查看你的教室')\n",
    "        if place == 'illustrator软件应用':\n",
    "            print('新综合楼612')\n",
    "elif today == 6:\n",
    "    print('今天是周六，没课')\n",
    "elif today == 7:\n",
    "    print('今天是周日，没课');\n",
    "    print('先做完作业再玩吧！')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "27236bdf",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e68fb7b5",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e825d252",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "bc70a421",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "342d6acc",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
